import Vue from 'vue'
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios, axios)
/* eslint-disable */ // 忽略该行往下 eslint的错误

Vue.mixin({
  methods: {
    async $get(url,params){
      let { data } = await axios.get(url,{
        params
      })
      return data
    },
    async $post(url,params){
      let { data } = await axios.get(url,{
        params
      })
      return data
    }
  },
})